<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>

</head>
<body onunload='window.parent.location.reload()'>
<div style="width: 800px; height: 100px; background-color: silver;">
<div style="width: 100%; height: 70px;">
<div style="width: 100%; height: 45px;"><font
	style="font-family: cursive; font-weight: bolder; font-size: xx-large; font-style: italic; color: blue; text-shadow: gray; margin-left: 10px;">eBusiness</font></div>
<div style="height: 25px; background-color: activeborder; padding-left: 50px;"><font style="font-style: oblique; font: font-stretch: wider; font-weight: bolder;">在线电子交易系统</font></div>
</div>

<%
	if (null != session.getAttribute("userId")) {
%>
<div>
<div style="width: 80%; float: left;">
<table>
	<tr>
		<td><a href="/go?page=watchprods" target="mainFrame">首页</a></td>
		<td><a
			href="/user?method=watchUser&userId=<%=session.getAttribute("userId")%>"
			target="mainFrame">查看您的信息</a></td>
		<td><a
			href="/user?method=shopcar&userId=<%=session.getAttribute("userId")%>"
			target="mainFrame">我的购物车</a></td>
	</tr>
</table>
</div>
<div style="width: 40px; float: right;"><a
	href="/user?method=logout">退出</a></div></div>
<%
	}
%> <%
 	if (null == session.getAttribute("userId")) {
 %>
<div style="width: 100%; vertical-align: middle;">
<div style="width: auto; float: right;">
<div style="width: 290px; float: left; height: 24px; font: small;">
<form action="/user?method=login" method="post"><font style="font-size: small;">用户名</font><input
	type="text" name="un" style="width: 80px; height: 20px; font-size: small;" />&nbsp;<font style="font-size: small;">密码</font><input
	type="password" name="pw" style="width: 80px; height: 20px; font-size: small;" /><input type="submit"
	value="登录" style="width: 40px; height: 20px; font-size: small;"/>&nbsp;</form>
</div>
<div style="width: 40px; float: right; vertical-align: bottom; height: 24px;"><a href="/go?page=regist"
	target="mainFrame" ><font style="font-size: small; vertical-align: bottom;">注册</font></a></div>
</div>
</div>
<%
	}
%>
</div>
</body>
</html>